
string = "abcd"
try:
    string.xxx()
except Exception as ex:
    print(ex.__class__)
    print(len(ex.args))
    print(ex.args[0])